<% form_for [:admin, @article], :url => path do |form| %>
  <table class="data2 data3" cellspacing="0">
    <tr>
      <th><label><%= Article.human_attribute_name("category_id") %>:</label></th>
      <td>
        <%= form.select :category_id, Category.all.map{|c| [c.name ,c.id]} %><span class="note2">&nbsp;必须</span>
        <%= error_message_on :article, :category_id %>
      </td>
    </tr>
    <tr>
      <th><label><%= Article.human_attribute_name("title") %>:</label></th>
      <td>
        <%= form.text_field :title %><span class="note2">&nbsp;必须</span>
        <%= error_message_on :article, :title %>
      </td>
    </tr>
    <tr>
      <th><label><%= Article.human_attribute_name("body") %>:</label></th>
      <td>
        <%= fckeditor_textarea("article", "body", :toolbarSet => 'Simple', :width => '100%', :height => '500px') %> <span class="note2">&nbsp;必须</span>
        <%= error_message_on :article, :body %>
      </td>
    </tr>
    <tr>
      <th><label><%= Article.human_attribute_name("is_public") %>:</label></th>
      <td>
        <%= form.check_box  :is_public%><span class="note2">&nbsp;必须</span>
        <%= error_message_on :article, :is_public %>
      </td>
    </tr>
    <tr><td  class="center" colspan="2"><%= form.submit t('labels.save'), :class => 'btn_s' %></td></tr>
  </table>
<% end %>
<div class="link-right">
  <%= link_to '返 回', admin_articles_path, :class=>"link_s"%>
</div>